package com.yazi.mxz.server.controller;

import javax.annotation.Resource;

import com.yazi.mxz.common.entity.beans.Member;
import com.yazi.mxz.common.service.MemberService;

/**
 * 
 * @author mo_yq5
 * @date 2014-2-14
 */
public class BaseController extends com.yazi.mxz.common.controller.BaseController{
	@Resource
	MemberService memberService;
	@Override
	public Member getLoginMember() {
		Member member = super.getLoginMember();
		if (null == member) {
			// 测试账号
			member = memberService.oneById(2L);
		}
		return member;
	}
	
}
